// Copyright (c) 2011 Romain Vallet <romain.vallet@gmail.com>
// Licensed under the MIT license, read license.txt

var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push( {
	name: 'Gameblog.fr',
	version: '0.1',
	prepareImgLinks: function(callback) {
		var res = [];
		hoverZoom.urlReplace(res, 
			'img[src*="/tn/"], img[src*="/med/"]',
			/\/(tn|med)\//,
			'/'
		);			
		hoverZoom.urlReplace(res, 
			'img[src*="mygameblog/av"]',
			/.*\/av(\d+)_.*/,
			'http://www.gameblog.fr/forum/uploads/av-$1.jpg'
		);			
		callback($(res));
	}
});
